package cn.zero.org.service;

import cn.zero.basic.utils.PageList;
import cn.zero.org.domain.Department;
import cn.zero.org.query.DepartmentQuery;

import java.util.List;

/**
* @Description: TODO
* @Author: Tang
* @Version: 1.0
* @Date:  2022/6/21 18:45
*/
public interface IDepartmentService {
    // 查询所有
    List<Department> loadAll();

    // 根据Id查询
    Department loadById(Long id);

    // 根据Id删除
    void remove(Long id);

    // 新增
    void save(Department department);

    // 根据Id修改
    void update(Department department);

    // 分页+高级查询
    PageList<Department> queryData(DepartmentQuery departmentQuery);


}
